package com.weipai.springboot.module.mapper;

import com.weipai.springboot.model.Freight;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

public interface FreightMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Freight record);

    int insertSelective(Freight record);

    Freight selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Freight record);

    int updateByPrimaryKey(Freight record);
    
    Freight getFreight();

    @Update("update c_freight set full_package=#{fullPackage}, freight=#{freight} where id=#{id}")
    int updateFreight(@Param("id") Integer freightId, 
                      @Param("fullPackage") Integer fullPackage, 
                      @Param("freight") Integer freight);
}